package asa;

public class FunctionCall extends Expr {

	public FunctionCall(String functionName, ExprList exprList) {
		this.functionName = functionName;
		this.exprList = exprList;
	}

    @Override
	public void genJava(PWInterface pw) {
    	genJava(pw, false);
    }

    @Override
	public void genJava(PWInterface pw, boolean putParenthesis ) {
    	pw.printIdent("Locyan." + functionName + "(");
    	exprList.genJava(pw);
    	pw.println(");");
	}

	private String functionName;
	private ExprList exprList;
}
